<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文章详情</title>

<link href="/ksp/layui/css/layui.css" rel="stylesheet">
<script type="text/javascript" src="/ksp/layui/layui.all.js"></script>

<script type="text/javascript">
var $ = layui.$;

function getUrlPam(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	if (r != null) {
		return unescape(r[2]);
	}
	return null;
}


function iniArtDetail() {
	//alert("14");
	var req = {"TTL_TCH" : getUrlPam("id")};
	$.ajax({
		url : "/ksp/art/KSPA04"
		,type : "get"
		,dataType : "json"
		,data : req
		,success : function(res) {
			if (res.cod == "200") {
				var cntArr = eval(res.jdt);
				$("#sSca").text(cntArr[0].ART_CNT);
			}
			
			
		}
		
	});
	
	
}

</script>

<script type="text/javascript">
$(function() {
	iniArtDetail();
	$("#bSca").click(function() {
		$.ajax({
			url : "/ksp//art/KSPA04"
			,type : "post"
			,dataType : "json"
			,data : {"TTL_TCH" : "1000001"}
			,success : function(res) {
				
			}
			
		});
		
	});
	
	
});


</script>

</head>
<body>
	<div>
		<div>文章详情</div>
		<div>
			文章内容
		</div>
		<div>浏览量<span id="sSca"></span></div>
		<div>
			<input class="layui-btn" type="button" id="bSca" value="浏览量">
		</div>
	</div>
</body>
</html>